//1.导入数据库
const mongoose = require('./connection')

//2.给样式进行约束
const catSchema = new mongoose.Schema({
    catname : String,
})

//3.创建model
const catModel = mongoose.model('category' , catSchema , 'category')

//4.导出数据
module.exports = catModel